<?php

@$name = $_REQUEST['name'];

@$value = $_REQUEST['value'];

@$pk = $_REQUEST['pk'];

require "lib/db.php";

$flag = dbUpdate("update person set $name=:value where id=:id",array('value'=>$value,'id'=>$pk));

if(!$flag){
	header('HTTP/1.1 412');
	die;
}
echo json_encode(array('status'=>true));